import { createApp } from 'vue'
import App from './App.vue'

import router from './router'
import store from './store'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
/* 引入element其他 icon图标 */
import * as ElementPlusIconsVue from "@element-plus/icons-vue";

import AOS from "aos";
import "../node_modules/aos/dist/aos.css";
AOS.init()
// import http from './utils/http.js'
import api from "./api/index.js";


const app = createApp(App)
/* 自己定义的要设置全局属性 让每个组件都能条用api方法*/
app.config.globalProperties.$api = api;
/* 从 @element-plus/icons-vue 中导入所有图标并进行全局注册 */
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component);
  }

app.use(store).use(router).use(ElementPlus).use(AOS).mount('#app')
